//
//  main.c
//  DiscreteMath_test1
//
//  Created by Xavier on 2023/9/14.
//

#include <stdio.h>

//返回 - 数组 去除重复的数字
void removeRepeatNumber(int* arr, int len) {
    int arr1[1000] = {0};
    for (int i = 0;i < len - 1; i++) {
        ++arr1[arr[i]];
    }
    for (int i = 0; i < 10; i++) {
        if (arr1[i] > 1) {
            int j = 0;
            arr[j] = i;
            printf("%d", arr[j]);
            j++;
        }
    }
}
int main(int argc, const char * argv[]) {
    int arr[10] = {2,1,3,4,5,6,7,7,8,1};
    int len = sizeof(arr)/sizeof(arr[0]);
    removeRepeatNumber(arr, len);
    printf("hello");
}
    
    
    
    


